package com.chenglai.shop.service;

import com.chenglai.shop.dao.ShopDao;
import com.chenglai.shop.util.JsonMessage;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 类描述：
 *
 * @author rjh
 * @date 2023/11/10 15:07
 */
@Service
public class ShopService {
    @Resource
    private ShopDao shopDao;

    public String queryGoodsInfoList(){
        return JsonMessage.setMessage(200,"查询成功","55555555").toString();
    }

    public String getShopInfoByShopId(Integer shopId){
        Map<String,Object> data = shopDao.getShopInfoByShopId(shopId);
        return JsonMessage.setMessage(200,"查询成功",data).toString();
    }

}
